package com.cy.ppj.model.doc;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @description: 团队返佣金设置记录
 * @author: Ocean
 * @create: 2018-09-19 17:20
 **/
@Data
@Document(collection = "team_commission_settings_log")
@CompoundIndexes({
        @CompoundIndex(name = "idx_time", def = "{'createTime': -1}")
})
public class TeamCommissionSettingsLog {

    @Id
    private String id;

    private Integer level;

    private BigDecimal oldRate;

    private BigDecimal newRate;

    private Date createTime;
}
